![]() |
YNQ
YNQ-1.6.0
|
Modules | |
| Encryption Algorithms | |
| Security Mechanisms | |
| Security Password Type | |
Data Structures | |
| struct | AMDomainA |
| struct | AMDomain |
| struct | AMCredentialsA |
| struct | AMCredentials |
Macros | |
| #define | AM_MAXSECURITYLEVEL 4 |
Functions | |
| NQ_BOOL | amStart (void) |
| void | amShutdown (void) |
| void | amClientDefineLevel (NQ_UINT level, NQ_UINT crypter1, NQ_UINT crypter2, NQ_UINT32 mehanisms) |
| void | amSetNonSecureAuthentication (NQ_BOOL enableNonSecureAuthentication) |
| void | amCredentialsAsciiiToW (AMCredentials *to, const AMCredentialsA *from) |
| void | amCredentialsInit (AMCredentials *creds, const NQ_WCHAR *domain, const NQ_WCHAR *user, const NQ_WCHAR *password, NQ_UINT type) |
| void | amCredentialsInitA (AMCredentialsA *creds, const NQ_CHAR *domain, const NQ_CHAR *user, const NQ_CHAR *password, NQ_UINT type) |
| #define AM_MAXSECURITYLEVEL 4 |
Maximum security level. Security levels are counted from zero to this value. Used by amClientDefineLevel()
| NQ_BOOL amStart | ( | void | ) |
This function initializes this module.
| void amShutdown | ( | void | ) |
This function disposes resources used by this module.
NQ Authentication module conveys authentication according to the required level of security.
This function assigns parameters for one authentication level:
| level | Authentication level to define. This value should be greater or equal to zero and it should not exceed the maximum security level as defined in AM_MAXSECURITYLEVEL. An illegal value will have no effect. |
| crypter1 | The first encryption algorithm. Available values are: |
| crypter2 | The second encryption algorithm. Available values are: |
| mehanisms | Available security mechanisms. This value is a bit mask of the following:
|
| Level | Crypter 1 | Crypter 2 | NTLMSSP | KERBEROS |
|---|---|---|---|---|
| 0 | LM | none | - | - |
| 1 | LM | NTLM | - | - |
| 2 | LM | NTLM | Yes | Yes |
| 3 | LMv2 | NTLMv2 | Yes | - |
| 4 | LMv2 | NTLMv2 | Yes | Yes |
| void amSetNonSecureAuthentication | ( | NQ_BOOL | enableNonSecureAuthentication | ) |
Some old authentication methods - used in SMB 1 only - are considered today non secure. By default those non secure methods will be disabled. Use this function to enable / disable non secure methods.
| enableNonSecureAuthentication | TRUE - non secure authentication will be used. FALSE - non secure authentication will not be used. |
| void amCredentialsAsciiiToW | ( | AMCredentials * | to, |
| const AMCredentialsA * | from | ||
| ) |
Copy and convert the ASCII credentials struct to a Unicode credentials struct.
| to | A Unicode credentials struct |
| from | An ASCII credentials struct |
| void amCredentialsInit | ( | AMCredentials * | creds, |
| const NQ_WCHAR * | domain, | ||
| const NQ_WCHAR * | user, | ||
| const NQ_WCHAR * | password, | ||
| NQ_UINT | type | ||
| ) |
Init UNICODE credentials.
| creds | A pointer to a Unicode credentials struct to initialize. |
| domain | A Unicode format domain name. |
| user | A Unicode format username. |
| password | A Unicode format password |
| type | password type, available values are: |
| void amCredentialsInitA | ( | AMCredentialsA * | creds, |
| const NQ_CHAR * | domain, | ||
| const NQ_CHAR * | user, | ||
| const NQ_CHAR * | password, | ||
| NQ_UINT | type | ||
| ) |
Init ASCII credentials.
| creds | A pointer to a ASCII credentials struct to initialize. |
| domain | An ASCII format domain name. |
| user | An ASCII format username. |
| password | An ASCII format password |
| type | password type, available values are: |